import { RouteRecordRaw } from 'vue-router';

/**
 * 建议：路由 path 路径与文件夹名称相同，找文件可浏览器地址找，方便定位文件位置
 *
 * 路由meta对象参数说明
 * meta: {
 *      title:          菜单栏及 tagsView 栏、菜单搜索名称（国际化）
 *      isLink：        是否超链接菜单，开启外链条件，`1、isLink: 链接地址不为空 2、isIframe:false`
 *      isHide：        是否隐藏此路由
 *      isKeepAlive：   是否缓存组件状态
 *      isAffix：       是否固定在 tagsView 栏上
 *      isIframe：      是否内嵌窗口，开启条件，`1、isIframe:true 2、isLink：链接地址不为空`
 *      roles：         当前路由权限标识，取角色管理。控制路由显示、隐藏。超级管理员：admin 普通角色：common
 *      icon：          菜单、tagsView 图标，阿里：加 `iconfont xxx`，fontawesome：加 `fa xxx`
 * }
 */

// 扩展 RouteMeta 接口
declare module 'vue-router' {
	interface RouteMeta {
		title?: string;
		titleEn?: string;
		isLink?: string;
		isHide?: boolean;
		isKeepAlive?: boolean;
		isAffix?: boolean;
		isIframe?: boolean;
		roles?: string[];
		icon?: string;
	}
}

const commonMeta = {
	isLink: '',
	isHide: true,
	isKeepAlive: true,
	isAffix: false,
	isIframe: false,
}

export const dynamicNotMunuRoutes: Array<RouteRecordRaw> = [
	{
		//安全-不正常事件报告查看
		path: '/abnormal/maintenance/view/:id',
		name: 'viewAbnormalMaintenance',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/ViewAbnormalMaintenance.vue'),
		meta: {
			...commonMeta,
			title: '查看不正常事件报告',
			titleEn: 'View Abnormal Report'
		},
		props: true,
	},
	{
		//安全-不正常事件报告审核
		path: '/abnormal/maintenance/audit/:processInsId/:taskId/:businessId',
		name: 'auditAbnormalMaintenance',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/AuditAbnormalMaintenance.vue'),
		meta: {
			...commonMeta,
			title: '审核不正常事件报告',
			titleEn: 'Audit Abnormal Report'
		},
		props: true,
	},
	{
		//安全-不正常事件报告审批
		path: '/abnormal/maintenance/audit4end/:processInsId/:taskId/:businessId',
		name: 'auditAbnormalMaintenance4End',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/Audit4EndAbnormalMaintenance.vue'),
		meta: {
			...commonMeta,
			title: '审批不正常事件报告',
			titleEn: 'Approve Abnormal Report'
		},
		props: true,
	},
	{
		//安全-不正常事件报告重新编制
		path: '/abnormal/maintenance/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditAbnormalMaintenance',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/ReeditAbnormalMaintenance.vue'),
		meta: {
			...commonMeta,
			title: '编制不正常事件报告',
			titleEn: 'Reedit Abnormal Report'
		},
		props: true,
	},
	{
		//安全-不正常事件报告补充
		path: '/abnormal/maintenance/supplement/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditAbnormalMaintenance4Supplement',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/ReeditAbnormalMaintenanceSupplement.vue'),
		meta: {
			...commonMeta,
			title: '编制不正常事件报告补充',
			titleEn: 'Reedit Abnormal Report Supplement'
		},
		props: true,
	},
	{
		//安全-不正常事件补充报告审核
		path: '/abnormal/maintenance/supplement/audit/:processInsId/:taskId/:businessId',
		name: 'auditAbnormalMaintenance4Supplement',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/AuditAbnormalMaintenanceSupplement.vue'),
		meta: {
			...commonMeta,
			title: '审核不正常事件报告补充',
			titleEn: 'Audit Abnormal Report Supplement'
		},
		props: true,
	},
	{
		//安全-不正常事件补充报告审批
		path: '/abnormal/maintenance/supplement/audit4end/:processInsId/:taskId/:businessId',
		name: 'auditAbnormalMaintenance4SupplementEnd',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/Audit4EndAbnormalMaintenanceSupplement.vue'),
		meta: {
			...commonMeta,
			title: '审批不正常事件报告补充',
			titleEn: 'Approve Abnormal Report Supplement'
		},
		props: true,
	},
	{
		//安全-不正常事件补充报告查看
		path: '/abnormal/maintenance/supplement/view/:id',
		name: 'viewAbnormalMaintenanceSupplement',
		component: () => import('/@/views/quality/safety/abnormalReport/component/workflows/ViewAbnormalMaintenanceSupplement.vue'),
		meta: {
			...commonMeta,
			title: '查看不正常事件报告补充',
			titleEn: 'View AbnormalList Report Supplement'
		},
		props: true,
	},
	{
		//安全-不正常事件清单查看
		path: '/abnormal/list/view/:id',
		name: 'viewAbnormalList',
		component: () => import('/@/views/quality/safety/abnormalList/component/ViewAbnormalList.vue'),
		meta: {
			...commonMeta,
			title: '查看不正常事件清单',
			titleEn: 'View View Abnormal List'
		},
		props: true,
	},
	{
		//自愿报告-部门查看
		path: '/voluntary/dept/view/:id',
		name: 'viewVoluntaryDept',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/ViewVoluntaryDept.vue'),
		meta: {
			...commonMeta,
			title: '查看部门级自愿报告',
			titleEn: 'View Voluntary Dept.'
		},
		props: true,
	},
	{
		//自愿报告-部门审核
		path: '/voluntary/dept/audit/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryDept',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/AuditVoluntaryDept.vue'),
		meta: {
			...commonMeta,
			title: '审核部门级自愿报告',
			titleEn: 'Audit Voluntary Dept.'
		},
		props: true,
	},
	{
		//自愿报告-部门重新编制
		path: '/voluntary/dept/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditVoluntaryDept',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/ReeditVoluntaryDept.vue'),
		meta: {
			...commonMeta,
			title: '重新编制部门级自愿报告',
			titleEn: 'Reedit Voluntary Dept.'
		},
		props: true,
	},
	{
		//自愿报告-部门-处理措施
		path: '/voluntary/dept/measure/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryDept4Measure',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/AuditVoluntaryDept4Measure.vue'),
		meta: {
			...commonMeta,
			title: '部门级自愿报告处理措施',
			titleEn: 'Departmental voluntary reporting and handling measures'
		},
		props: true,
	},
	{
		//自愿报告-部门-措施审核
		path: '/voluntary/dept/audit4measure/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryDept4Audit',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/AuditVoluntaryDept4Audit.vue'),
		meta: {
			...commonMeta,
			title: '部门级自愿报告处理措施审核',
			titleEn: 'Review of voluntary reporting and handling measures at the departmental level'
		},
		props: true,
	},
	{
		//自愿报告-部门-处理结果反馈
		path: '/voluntary/dept/audit4feedback/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryDept4Feedback',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/AuditVoluntaryDept4Feedback.vue'),
		meta: {
			...commonMeta,
			title: '部门级自愿报告处理措施反馈',
			titleEn: 'Department level voluntary reporting and handling measures feedback'
		},
		props: true,
	},
	{
		//自愿报告-部门-处理结果验证
		path: '/voluntary/dept/audit4Valid/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryDept4Valid',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/AuditVoluntaryDept4Valid.vue'),
		meta: {
			...commonMeta,
			title: '部门级自愿报告验证',
			titleEn: 'Department level voluntary report verification'
		},
		props: true,
	},
	{
		//自愿报告-公司查看
		path: '/voluntary/org/view/:id',
		name: 'viewVoluntaryOrg',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/ViewVoluntaryDept.vue'),
		meta: {
			...commonMeta,
			title: '查看公司级自愿报告',
			titleEn: 'View Voluntary Org'
		},
		props: true,
	},
	{
		//自愿报告-公司审核
		path: '/voluntary/org/audit/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryOrg',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/AuditVoluntaryDept.vue'),
		meta: {
			...commonMeta,
			title: '审核公司级自愿报告',
			titleEn: 'Audit Voluntary Org'
		},
		props: true,
	},
	{
		//自愿报告-公司重新编制
		path: '/voluntary/org/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditVoluntaryOrg',
		component: () => import('/@/views/quality/safety/deptVoluntary/component/ReeditVoluntaryDept.vue'),
		meta: {
			...commonMeta,
			title: '重新编制公司级自愿报告',
			titleEn: 'Reedit Voluntary Org'
		},
		props: true,
	},
	{
		//自愿报告-公司-处理措施
		path: '/voluntary/org/measure/:processInsId/:taskId/:businessId',
		name: 'editVoluntaryOrgHandle4Measure',
		component: () => import('/@/views/quality/safety/orgVoluntary/component/EditVoluntaryOrgHandle4Measure.vue'),
		meta: {
			...commonMeta,
			title: '公司级自愿报告处理措施',
			titleEn: 'Company-level Voluntary Report Handling Measures'
		},
		props: true,
	},
	{
		//自愿报告-公司信息处理-审核
		path: '/voluntary/org/handle/audit/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryOrgHandle',
		component: () => import('/@/views/quality/safety/orgVoluntary/component/AuditReportOrgHandleHandle.vue'),
		meta: {
			...commonMeta,
			title: '公司级自愿报告处理审核',
			titleEn: 'Company-level Voluntary Report Handling Review'
		},
		props: true,
	},
	{
		//自愿报告-公司信息处理-处理结果
		path: '/voluntary/org/result/:processInsId/:taskId/:businessId',
		name: 'editVoluntaryOrgHandle4Result',
		component: () => import('/@/views/quality/safety/orgVoluntary/component/EditReportOrgHandle4Result.vue'),
		meta: {
			...commonMeta,
			title: '公司级自愿报告处理结果',
			titleEn: 'Company-level Voluntary Report Handling Result'
		},
		props: true,
	},
	{
		//自愿报告-公司信息处理-验证
		path: '/voluntary/org/handle/valid/:processInsId/:taskId/:businessId',
		name: 'auditVoluntaryOrgHandle4Valid',
		component: () => import('/@/views/quality/safety/orgVoluntary/component/AuditVoluntaryOrgHandle4Valid.vue'),
		meta: {
			...commonMeta,
			title: '公司级自愿报告处理验证',
			titleEn: 'Voluntary Org Handle For Valid'
		},
		props: true,
	},
	{
		//自愿报告-公司信息处理-查看
		path: '/voluntary/org/handle/view/:id',
		name: 'viewVoluntaryOrgHandle',
		component: () => import('/@/views/quality/safety/orgVoluntary/component/ViewReportOrgHandleHandle.vue'),
		meta: {
			...commonMeta,
			title: '查看公司级自愿报告处理',
			titleEn: 'View Report Org Handle'
		},
		props: true,
	},
	{
		// 部门级整改反馈单-反馈处理措施
		path: '/safe/rectification/feedback1/:processInsId/:taskId/:businessId',
		name: 'feedbackRectification1',
		component: () => import('/@/views/quality/audit/deptRectification/component/FeedbackDeptRectification1.vue'),
		meta: {
			...commonMeta,
			title: '整改反馈单-反馈处理措施',
			titleEn: 'Rectification Feedback Form - Feedback Handling Measures'
		},
		props: true,
	},
	{
		// 部门级整改反馈单-审核
		path: '/safe/rectification/audit/:processInsId/:taskId/:businessId',
		name: 'auditRectification',
		component: () => import('/@/views/quality/audit/deptRectification/component/AuditDeptRectification.vue'),
		meta: {
			...commonMeta,
			title: '审核整改反馈单',
			titleEn: 'Review and rectification feedback form'
		},
		props: true,
	},
	{
		// 部门级整改反馈单-反馈整改情况
		path: '/safe/rectification/feedback2/:processInsId/:taskId/:businessId',
		name: 'feedbackRectification2',
		component: () => import('/@/views/quality/audit/deptRectification/component/FeedbackDeptRectification2.vue'),
		meta: {
			...commonMeta,
			title: '整改反馈单-反馈整改情况',
			titleEn: 'Rectification Feedback Form - Feedback on Rectification Status'
		},
		props: true,
	},
	{
		// 部门级整改反馈单-治理验证
		path: '/safe/rectification/verify/:processInsId/:taskId/:businessId',
		name: 'auditRectification4Verify',
		component: () => import('/@/views/quality/audit/deptRectification/component/AuditDeptRectification4Verify.vue'),
		meta: {
			...commonMeta,
			title: '整改反馈的验证',
			titleEn: 'Audit Rectification Verify'
		},
		props: true,
	},
	{
		// 部门级整改反馈单-重新编制
		path: '/safe/rectification/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditRectification',
		component: () => import('/@/views/quality/audit/deptRectification/component/ReeditDeptRectification.vue'),
		meta: {
			...commonMeta,
			title: '重新编制整改反馈单',
			titleEn: 'Reedit Rectification Verify'
		},
		props: true,
	},
	{
		//部门级整改反馈单-查看
		path: '/safe/rectification/view/:id',
		name: 'viewRectification',
		component: () => import('/@/views/quality/audit/deptRectification/component/ViewDeptRectification.vue'),
		meta: {
			...commonMeta,
			title: '查看整改反馈单',
			titleEn: 'View Rectification Feedback'
		},
		props: true,
	},
	{
		// 安全隐患-审核
		path: '/safe/hiddenTrouble/verify/:processInsId/:taskId/:businessId',
		name: 'auditHiddenTrouble',
		component: () => import('/@/views/quality/safety/deptHiddenTrouble/component/AuditDeptHiddenTrouble.vue'),
		meta: {
			...commonMeta,
			title: '审核安全隐患清单',
			titleEn: 'Review Safety Hazards List'
		},
		props: true,
	},
	{
		// 安全隐患-重新编制
		path: '/safe/hiddenTrouble/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditHiddenTrouble',
		component: () => import('/@/views/quality/safety/deptHiddenTrouble/component/ReeditDeptHiddenTrouble.vue'),
		meta: {
			...commonMeta,
			title: '重新编制安全隐患清单',
			titleEn: 'Reedit Safety Hazards List'
		},
		props: true,
	},
	{
		//安全隐患-查看
		path: '/safe/hiddenTrouble/view/:id',
		name: 'viewHiddenTrouble',
		component: () => import('/@/views/quality/safety/deptHiddenTrouble/component/ViewDeptHiddenTrouble.vue'),
		meta: {
			...commonMeta,
			title: '查看安全隐患清单',
			titleEn: 'View Safety Hazards List'
		},
		props: true,
	},
	{
		// 危险源-审核
		path: '/safe/dangerousSrc/verify/:processInsId/:taskId/:businessId',
		name: 'auditDangerousSrc',
		component: () => import('/@/views/quality/safety/deptDangerousSrc/component/AuditDeptDangerousSrc.vue'),
		meta: {
			...commonMeta,
			title: '审核安全风险管控',
			titleEn: 'Review Safety Risk Control'
		},
		props: true,
	},
	{
		// 危险源-重新编制
		path: '/safe/dangerousSrc/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditDangerousSrc',
		component: () => import('/@/views/quality/safety/deptDangerousSrc/component/ReeditDeptDangerousSrc.vue'),
		meta: {
			...commonMeta,
			title: '重新编制安全风险管控',
			titleEn: 'Reedit Safety Risk Control'
		},
		props: true,
	},
	{
		//危险源-查看
		path: '/safe/dangerousSrc/view/:id',
		name: 'viewDangerousSrc',
		component: () => import('/@/views/quality/safety/deptDangerousSrc/component/ViewDeptDangerousSrc.vue'),
		meta: {
			...commonMeta,
			title: '查看安全风险管控',
			titleEn: 'View Safety Risk Control'
		},
		props: true,
	},
	{
		//机型-查看
		path: '/basedata/model/view/:id',
		name: 'viewBasedataModel',
		component: () => import('/@/views/basedata/model/component/ViewAcmodel.vue'),
		meta: {
			...commonMeta,
			title: '查看机型',
			titleEn: 'View Model'
		},
		props: true,
	},
	{
		// 人员档案-查看
		path: '/training/personnelFile/view/:id',
		name: 'viewTrainingPersonnelFile',
		component: () => import('/@/views/training/personnelFile/component/ViewPersonnelFile.vue'),
		meta: {
			...commonMeta,
			title: '查看人员档案',
			titleEn: 'View Personnel File'
		},
		props: true,
	},
	//供应商档案
	{
		//审核
		path: '/engTec/qualitySupplier/acceptanceProcess4Audit/:processInsId/:taskId/:businessId',
		name: 'processQualitySupplier4Audit',
		component: () => import('/@/views/quality/supplier/component/workflows/processQualitySupplier4Audit.vue'),
		meta: {
			...commonMeta,
			title: '审核-供应商档案',
			titleEn: 'Approve Debugging Acceptance'
		},
		props: true,
	},
	{
		//审核
		path: '/engTec/qualitySupplier/acceptanceProcess4Reedit/:processInsId/:taskId/:businessId',
		name: 'processQualitySupplier4Reedit',
		component: () => import('/@/views/quality/supplier/component/workflows/processQualitySupplier4Reedit.vue'),
		meta: {
			...commonMeta,
			title: '申请-供应商档案',
			titleEn: 'Approve Debugging Acceptance'
		},
		props: true,
	},
	
	{
		//查看
		path: '/engTec/qualitySupplier/view/:id',
		name: 'viewQualitySupplier',
		component: () => import('/@/views/quality/supplier/component/workflows/viewQualitySupplier.vue'),
		meta: {
			...commonMeta,
			title: '查看-供应商档案',
			titleEn: 'Approve Debugging Acceptance'
		},
		props: true,
	},
	//物料申请
	{
		//审核
		path: '/material/materialApply/acceptanceProcess4Audit/:processInsId/:taskId/:businessId',
		name: 'processMaterialMaterialApply4Review',
		component: () => import('/@/views/material/materialApply/component/processMaterialMaterialApply4Review.vue'),
		meta: {
			...commonMeta,
			title: '审批-物料申请',
			titleEn: 'Approve Material Apply'
		},
		props: true,
	},
	{
		//申请
		path: '/material/materialApply/acceptanceProcess44Reedit/:processInsId/:taskId/:businessId',
		name: 'processMaterialMaterialApply4Reedit',
		component: () => import('/@/views/material/materialApply/component/processMaterialMaterialApply4Reedit.vue'),
		meta: {
			...commonMeta,
			title: '申请-物料申请',
			titleEn: 'Approve Material Apply'
		},
		props: true,
	},
	{
		//查看
		path: '/material/materialApply/view/:id',
		name: 'viewMaterialMaterialApply',
		component: () => import('/@/views/material/materialApply/component/viewMaterialMaterialApply.vue'),
		meta: {
			...commonMeta,
			title: '查看-物料申请',
			titleEn: 'View Material Apply'
		},
		props: true,
	},
	//物料需求申请 viewMaterialDemand
	{
		//查看
		path: '/material/materialDemand/view/:id',
		name: 'viewMaterialDemand',
		component: () => import('/@/views/material/materialDemand/component/viewMaterialDemand.vue'),
		meta: {
			...commonMeta,
			title: '查看-物料需求申请',
			titleEn: 'View Material Demand'
		},
		props: true,
	},
	{
		//审核
		path: '/material/materialDemand/acceptanceProcess4Audit/:processInsId/:taskId/:businessId',
		name: 'processMaterialDemand4Audit',
		component: () => import('/@/views/material/materialDemand/component/processMaterialDemand4Audit.vue'),
		meta: {
			...commonMeta,
			title: '审核-物料需求申请',
			titleEn: 'Audit Material Demand'
		},
		props: true,
	},
	{
		//审批 processMaterialDemand4Approve
		path: '/material/materialDemand/acceptanceProcess4Approve/:processInsId/:taskId/:businessId',
		name: 'processMaterialDemand4Approve',
		component: () => import('/@/views/material/materialDemand/component/processMaterialDemand4Approve.vue'),
		meta: {
			...commonMeta,
			title: '审批-物料需求申请',
			titleEn: 'Approve Material Demand'
		},
		props: true,
	},
	{
		// 重新编制
		path: '/material/materialDemand/acceptanceProcess4Reedit/:processInsId/:taskId/:businessId',
		name: 'processMaterialDemand4Reedit',
		component: () => import('/@/views/material/materialDemand/component/processMaterialDemand4Reedit.vue'),
		meta: {
			...commonMeta,
			title: '重新编制-物料需求申请',
			titleEn: 'Reedit Material Demand'
		},
		props: true,
	},

	{
		// 质量安全通告-查看
		path: '/material/contract/view/:id',
		name: 'viewContract',
		component: () => import('/@/views/material/contract/component/viewContract.vue'),
		meta: {
			...commonMeta,
			title: '查看合同',
			titleEn: 'View contract'
		},
		props: true,
	},


	{
		// 质量安全通告-查看
		path: '/quality/safetyNotice/publish/view/:id',
		name: 'viewQualitySafetyNotice',
		component: () => import('/@/views/quality/safetyNotice/publish/component/ViewNotice.vue'),
		meta: {
			...commonMeta,
			title: '查看质量安全通告',
			titleEn: 'View Quality Safety Noitce'
		},
		props: true,
	},
	{
		// 题库-查看
		path: '/training/exam/questionBank/view/:id',
		name: 'viewTrainingExamQuestionBank',
		component: () => import('/@/views/training/exam/questionBank/component/ViewQuestionBank.vue'),
		meta: {
			...commonMeta,
			title: '查看题库',
			titleEn: 'View Question Bank'
		},
		props: true,
	},
	{
		// 题目-查看
		path: '/training/exam/question/view/:id',
		name: 'viewTrainingExamQuestion',
		component: () => import('/@/views/training/exam/question/component/ViewQuestion.vue'),
		meta: {
			...commonMeta,
			title: '查看题目',
			titleEn: 'View Question '
		},
		props: true,
	},
	{
		// 试卷规则-查看
		path: '/training/exam/rule/view/:id',
		name: 'viewTrainingExamRule',
		component: () => import('/@/views/training/exam/rule/component/ViewRule.vue'),
		meta: {
			...commonMeta,
			title: '查看试卷规则',
			titleEn: 'View Exam Rule '
		},
		props: true,
	},
	{
		// 课程-查看
		path: '/training/course/view/:id',
		name: 'viewTrainingCourse',
		component: () => import('/@/views/training/course/component/ViewTrainingCourse.vue'),
		meta: {
			...commonMeta,
			title: '查看课程',
			titleEn: 'View Course'
		},
		props: true,
	},
	{
		// 培训计划-查看
		path: '/training/plan/view/:id',
		name: 'viewTrainingPlan',
		component: () => import('/@/views/training/plan/component/ViewTrainingPlan.vue'),
		meta: {
			...commonMeta,
			title: '查看培训计划',
			titleEn: 'View Training Plan'
		},
		props: true,
	},
	{
		//培训需求查看
		path: '/training/needs/view/:id',
		name: 'viewTrainingNeeds',
		component: () => import('/@/views/training/needs/component/ViewTrainingNeeds.vue'),
		meta: {
			...commonMeta,
			title: '查看培训需求',
			titleEn: 'View Training Needs'
		},
		props: true,
	},
	{
		//培训需求审核
		path: '/training/needs/audit/:processInsId/:taskId/:businessId',
		name: 'processTrainingNeeds4Audit',
		component: () => import('/@/views/training/needs/component/ProcessTrainingNeeds4Audit.vue'),
		meta: {
			...commonMeta,
			title: '审核培训需求',
			titleEn: 'Audit Training Needs'
		},
		props: true,
	},
	{
		//培训需求审批
		path: '/training/needs/confirm/:processInsId/:taskId/:businessId',
		name: 'processTrainingNeeds4Confirm',
		component: () => import('/@/views/training/needs/component/ProcessTrainingNeeds4Confirm.vue'),
		meta: {
			...commonMeta,
			title: '确认培训需求',
			titleEn: 'Approve Training Needs'
		},
		props: true,
	},
	{
		//培训需求重新编制
		path: '/training/needs/reedit/:processInsId/:taskId/:businessId',
		name: 'processTrainingNeeds4Reedit',
		component: () => import('/@/views/training/needs/component/ProcessTrainingNeeds4Reedit.vue'),
		meta: {
			...commonMeta,
			title: '编制培训需求',
			titleEn: 'Reedit Training Needs'
		},
		props: true,
	},
	{
		// 培训记录查看
		path: '/training/record/view/:id',
		name: 'viewTrainingRecord',
		component: () => import('/@/views/training/record/component/ViewTrainingRecord.vue'),
		meta: {
			...commonMeta,
			title: '查看培训记录',
			titleEn: 'View Training Record'
		},
		props: true,
	},
	{
		//岗位授权申请查看
		path: '/quality/post/apply/view/:id',
		name: 'viewQualityPostApply',
		component: () => import('/@/views/quality/post/apply/component/ViewQualityPostApply.vue'),
		meta: {
			...commonMeta,
			title: '查看岗位授权申请',
			titleEn: 'View Post Apply'
		},
		props: true,
	},
	{
		//岗位授权申请培训评估
		path: '/quality/post/apply/training/:processInsId/:taskId/:businessId',
		name: 'processQualityPostApply4Training',
		component: () => import('/@/views/quality/post/apply/component/ProcessQualityPostApply4Training.vue'),
		meta: {
			...commonMeta,
			title: '岗位授权申请培训评估',
			titleEn: 'Training Post Apply'
		},
		props: true,
	},
	{
		//岗位授权申请审核
		path: '/quality/post/apply/quality/:processInsId/:taskId/:businessId',
		name: 'processQualityPostApply4Quality',
		component: () => import('/@/views/quality/post/apply/component/ProcessQualityPostApply4Quality.vue'),
		meta: {
			...commonMeta,
			title: '审核岗位授权申请',
			titleEn: 'Approve Post Apply'
		},
		props: true,
	},
	{
		//岗位授权申请审批
		path: '/quality/post/apply/audit/:processInsId/:taskId/:businessId',
		name: 'processQualityPostApply4Audit',
		component: () => import('/@/views/quality/post/apply/component/ProcessQualityPostApply4Audit.vue'),
		meta: {
			...commonMeta,
			title: '审批岗位授权申请',
			titleEn: 'Audit Post Apply'
		},
		props: true,
	},
	{
		//岗位授权申请重新编制
		path: '/quality/post/apply/reedit/:processInsId/:taskId/:businessId',
		name: 'processQualityPostApply4Reedit',
		component: () => import('/@/views/quality/post/apply/component/ProcessQualityPostApply4Reedit.vue'),
		meta: {
			...commonMeta,
			title: '编制岗位授权申请',
			titleEn: 'Reedit Post Apply'
		},
		props: true,
	},
	{
		//人员培训-满意度调查-打分
		path: '/training/satisfactionSurvey/eval/:processInsId/:taskId/:businessId',
		name: 'processTrainingSatisfactionSurvey4Eval',
		component: () => import('/@/views/training/satisfactionSurvey/component/ProcessSatisfactionSurvey4Eval.vue'),
		meta: {
			...commonMeta,
			title: '人员培训-满意度调查-打分',
			titleEn: 'Training Satisfaction Questionnaire Scoring'
		},
		props: true,
	},
	{
		// 人员培训-满意度调查-查看
		path: '/training/satisfactionSurvey/view/:id',
		name: 'viewTrainingSatisfactionSurvey',
		component: () => import('/@/views/training/satisfactionSurvey/component/ViewSatisfactionSurvey.vue'),
		meta: {
			...commonMeta,
			title: '查看人员培训-满意度调查',
			titleEn: 'View Training Satisfaction Questionnaire'
		},
		props: true,
	},
	{
		// 教员评分查看
		path: '/training/teacherEval/view/:id',
		name: 'viewTrainingTeacherEval',
		component: () => import('/@/views/training/teacherEvalStatistics/component/ViewTeacherEval.vue'),
		meta: {
			...commonMeta,
			title: '查看教员评分',
			titleEn: 'View Trainer Eval.'
		},
		props: true,
	},
	{
		// 飞机查看
		path: '/basedata/aircraft/view/:id',
		name: 'viewBasedataAircraft',
		component: () => import('/@/views/basedata/aircraft/component/ViewAircraft.vue'),
		meta: {
			...commonMeta,
			title: '查看飞机',
			titleEn: 'View Aircraft'
		},
		props: true,
	},
	{
		// 手册程序-审核
		path: '/quality/manual/audit/:processInsId/:taskId/:businessId',
		name: 'auditQualityManualRevision',
		component: () => import('/@/views/quality/manual/component/AuditQualityManualRevision.vue'),
		meta: {
			...commonMeta,
			title: '手册程序审核',
			titleEn: 'Manual Audit'
		},
		props: true,
	},
	{
		// 手册程序-重新编制
		path: '/quality/manual/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditQualityManualRevision',
		component: () => import('/@/views/quality/manual/component/ReeditQualityManualRevision.vue'),
		meta: {
			...commonMeta,
			title: '手册程序重新编制',
			titleEn: 'Manual Redesign'
		},
		props: true,
	},
	{
		// 手册程序-查看
		path: '/quality/manual/view/:id',
		name: 'viewQualityManualRevision',
		component: () => import('/@/views/quality/manual/component/ViewQualityManualRevision.vue'),
		meta: {
			...commonMeta,
			title: '查看手册程序',
			titleEn: 'View Manual'
		},
		props: true,
	},
	{
		// 手册程序-新增
		path: '/quality/manual/apply/add',
		name: 'addManualRevision',
		component: () => import('/@/views/quality/manual/component/AddManualRevision.vue'),
		meta: {
			...commonMeta,
			title: '新增手册程序',
			titleEn: 'Add Manual'
		},
		props: true,
	},
	{
		// 手册程序-编辑
		path: '/quality/manual/apply/edit/:id',
		name: 'editManualRevision',
		component: () => import('/@/views/quality/manual/component/EditManualRevision.vue'),
		meta: {
			...commonMeta,
			title: '编辑手册程序',
			titleEn: 'Edit Manual'
		},
		props: true,
	},
	

	{
		// 通告/提示-审核
		path: '/project/techBulletin/audit/:processInsId/:taskId/:businessId',
		name: 'auditProjectTechBulletin',
		component: () => import('/@/views/project/techBulletin/component/processProjectTechBulletin4Audit.vue'),
		meta: {
			...commonMeta,
			title: '通告提示审核',
			titleEn: 'Manual Audit'
		},
		props: true,
	},
	{
		// 通告/提示-重新编制
		path: '/project/techBulletin/reedit/:processInsId/:taskId/:businessId',
		name: 'reeditProjectTechBulletin',
		component: () => import('/@/views/project/techBulletin/component/processProjectTechBulletin4Reedit.vue'),
		meta: {
			...commonMeta,
			title: '通告提示重新编制',
			titleEn: 'Manual Redesign'
		},
		props: true,
	},
	{
		// 通告/提示-查看
		path: '/project/techBulletin/view/:id',
		name: 'viewProjectTechBulletin',
		component: () => import('/@/views/project/techBulletin/component/viewProjectTechBulletin.vue'),
		meta: {
			...commonMeta,
			title: '查看通告提示',
			titleEn: 'View Manual'
		},
		props: true,
	},
	{
		// 通告/提示-新增
		path: '/project/techBulletin/add',
		name: 'addProjectTechBulletin',
		component: () => import('/@/views/project/techBulletin/component/addProjectTechBulletin.vue'),
		meta: {
			...commonMeta,
			title: '新增通告提示',
			titleEn: 'Add Manual'
		},
		props: true,
	},
	{
		// 通告/提示-编辑
		path: '/project/techBulletin/edit/:id',
		name: 'editProjectTechBulletin',
		component: () => import('/@/views/project/techBulletin/component/editProjectTechBulletin.vue'),
		meta: {
			...commonMeta,
			title: '编辑通告提示',
			titleEn: 'Edit Manual'
		},
		props: true,
	},
];

/**
 * 定义动态路由
 * 前端添加路由，请在顶级节点的 `children 数组` 里添加
 * @description 未开启 isRequestRoutes 为 true 时使用（前端控制路由），开启时第一个顶级 children 的路由将被替换成接口请求回来的路由数据
 * @description 各字段请查看 `/@/views/system/menu/component/addMenu.vue 下的 ruleForm`
 * @returns 返回路由菜单数据
 */
export const dynamicRoutes: Array<RouteRecordRaw> = [
	{
		path: '/',
		name: '/',
		component: () => import('/@/layout/index.vue'),
		redirect: '/home',
		meta: {
			isKeepAlive: true,
		},
		children: [
			// {
			// 	path: '/home',
			// 	name: 'home',
			// 	component: () => import('/@/views/home/index.vue'),
			// 	meta: {
			// 		title: '首页',
			// 		titleEn: 'Home',
			// 		isLink: '',
			// 		isHide: false,
			// 		isKeepAlive: true,
			// 		isAffix: true,
			// 		isIframe: false,
			// 		icon: 'iconfont icon-shouye',
			// 	},
			// },
			...dynamicNotMunuRoutes,
		],
	},
];

/**
 * 定义404、401界面
 * @link 参考：https://next.router.vuejs.org/zh/guide/essentials/history-mode.html#netlify
 */
export const notFoundAndNoPower = [
	{
		path: '/:path(.*)*',
		name: 'notFound',
		component: () => import('/@/views/error/404.vue'),
		meta: {
			title: 'message.staticRoutes.notFound',
			isHide: true,
		},
	},
	{
		path: '/401',
		name: 'noPower',
		component: () => import('/@/views/error/401.vue'),
		meta: {
			title: 'message.staticRoutes.noPower',
			isHide: true,
		},
	},
];

/**
 * 定义静态路由（默认路由）
 * 此路由不要动，前端添加路由的话，请在 `dynamicRoutes 数组` 中添加
 * @description 前端控制直接改 dynamicRoutes 中的路由，后端控制不需要修改，请求接口路由数据时，会覆盖 dynamicRoutes 第一个顶级 children 的内容（全屏，不包含 layout 中的路由出口）
 * @returns 返回路由菜单数据
 */
export const staticRoutes: Array<RouteRecordRaw> = [
	{
		path: '/login',
		name: 'login',
		component: () => import('/@/views/login/index.vue'),
		meta: {
			title: '登录',
		},
	},
	{
		//查看pdf
		path: '/common/fileView/:id/:type/:disableDownload?',
		name: 'fileView',
		component: () => import('/@/views/common/fileView/index.vue'),
		meta: {
			title: '文件查看',
			titleEn: 'File Viewer'
		},
		props: true,
	},
	/**
	 * 提示：写在这里的为全屏界面，不建议写在这里
	 * 请写在 `dynamicRoutes` 路由数组中
	 */

];
